using System.Configuration;

namespace Unity.Extensions
{
    public class InterceptionHandlerConfigurationElementCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new InterceptionHandlerConfiguraitonElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((InterceptionHandlerConfiguraitonElement)element).HandlerType;
        }
    }
}